package com.xinghanlaser.applet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinghanlaser.applet.entity.HistoryDTO;
import com.xinghanlaser.applet.entity.TopicDetail;
import com.xinghanlaser.applet.query.TopicQuery;
import com.xinghanlaser.applet.vo.applet.TopicCountVO;
import com.xinghanlaser.applet.vo.applet.TopicVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author XH-YF-TSDN-0080
* @description 针对表【topic_detail】的数据库操作Mapper
* @createDate 2024-05-08 09:05:53
* @Entity com.xinghanlaser.applet.entity.TopicDetail
*/
@Mapper
public interface TopicDetailMapper extends BaseMapper<TopicDetail> {
    List<TopicVO> getPageByCondition(@Param("query")TopicQuery query);

    TopicVO getTopicVoById(@Param("topicId")Long topicId, @Param("roleId")Long roleId, @Param("lineTypeId")Integer lineTypeId);

    List<TopicCountVO> getTopicCountList(@Param("roleId")Long roleId, @Param("userId")Long userId);

    List<HistoryDTO> getTopicHistoryDesc( @Param("roleId")Long roleId, @Param("lineTypeId")Integer lineTypeId);
}




